import request from '@/utils/request'

export function pageTeacherCondition(currnet, limit,teacherQuery) {
  return request({
    url: `/eduservice/teacher/pageTeacherCondition?currnet=${currnet}&limit=${limit}`,
    method: 'post',
    data:teacherQuery
  })
}



export function teacherDel(id) {
  return request({
    url: `/eduservice/teacher/${id}`,
    method: 'Delete'
  })
}


export function addteacher(data) {
  return request({
    url: `/eduservice/teacher/addTeacher`,
    method: 'post',
    data
  })
}

export function modifyEduTeacher(data) {
  return request({
    url: `/eduservice/teacher/modifyTeacher`,
    method: 'Put',
    data
  })
}

export function getAllTeacher(){
  return request({
    url: `/eduservice/teacher/getAllTeacher`,
     method: 'get',
  })
}
